home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Graphics / QuickDraw GX / GX->PostScript Sample / GXToPostScript / Internal Headers / PublicPostScriptIE.h < prev   
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.7 KB  |  69 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        PublicPostScriptIE.h
  3.  
  4.      Contains:    QuickDraw GX to PostScript conversion code.
  5.                          File contains the definitions that a client needs to 
  6.                         use the PostScript imaging engine.
  7.  
  8.      Version:    Technology:    Quickdraw GX 1.1.x
  9.       
  10.      Copyright:    © 1991-1997 by Apple Computer, Inc., all rights reserved.
  11. */
  12.  
  13. /************************
  14.  
  15.     Data structure for the startup parameter block
  16.     
  17. *************************/
  18.  
  19. #ifndef __PUPLICPOSTSCRIPTIE__
  20. #define __PUPLICPOSTSCRIPTIE__
  21.  
  22. #include "GXtoPSBuildConfig.h"
  23.  
  24. #ifndef __FONTHANDLER__
  25. #include "FontHandler.h"
  26. #endif
  27.  
  28. typedef void *TPSIEContext;
  29.  
  30. /** PostScript driver should tag inks with this to indicate or-mode **/
  31.  
  32. enum { orModeTag = 'ormd' };
  33.  
  34.  
  35. /** Constant for how much memory a client should leave free in the printer for imaging **/
  36.  
  37. #define kPostScriptIENeededVM 32768
  38.  
  39.  
  40.  
  41. /**** Prototypes ****/
  42.  
  43. typedef struct {
  44.     long flags1;
  45. }    TCompatibilityFlags;
  46.  
  47. OSErr EnterPostScriptIE(TPSIEContext *context, CGXtoPostScriptDevice *psDevice, gxPostScriptImageDataRec *params,
  48.                                                         TFontHandlerContext fhContext, TCompatibilityFlags* compatFlags);
  49.  
  50. OSErr    PostScriptInitGraphics(TPSIEContext context, gxPostScriptImageDataRec *imageData, gxMapping *devMapping, gxFormatHalftoneInfo *halftoneRecord);
  51.  
  52. OSErr    PostScriptRestoreGraphics(TPSIEContext context);
  53.  
  54. #ifndef GXTOPOSTSCRIPTLIBRARY
  55.     OSErr    PostScriptIEGetProcSetList(TPSIEContext context, gxProcSetListPtr);
  56. #else 
  57.     OSErr    PostScriptIEDownloadProcSets(TPSIEContext context);
  58. #endif
  59.  
  60. void        PostScriptIEReplaceFontHandler(TPSIEContext context, TFontHandlerContext newFHContext);
  61.  
  62. OSErr    ExitPostScriptIE(TPSIEContext);
  63.  
  64. OSErr PostScriptDrawShape(TPSIEContext context, gxShape theShape , gxTransform transformList[], long transformCount);
  65.  
  66.  
  67.  
  68. #endif // __PUPLICPOSTSCRIPTIE__
  69.